const Joi = require('joi')
//id
const id = Joi.string().max(40).required()
//姓名
const name = Joi.string().min(1).max(20).required()
//英文名
const enName = Joi.string().min(1).max(20).required()
//类型
const type = Joi.string().required()
//星级
const star = Joi.number().min(1).max(6).required()
//灵感
const inspiration = Joi.string().required()

//验证规则对象:添加
exports.add_schema = Joi.object({ name,enName,type,star,inspiration })
//验证规则对象:修改
exports.update_schema = Joi.object({ id,name,enName,type,star,inspiration })



